﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administration/Admin.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="CustomHtml.aspx.cs" Inherits="Administration_CustomHtml" %>
<%@ Register Src="~/Administration/UIControls/HtmlEdit.ascx" TagPrefix="cc1" TagName="HtmlEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">

 
    <asp:MultiView runat="server" ID="multiview" ActiveViewIndex="0">
    
        <asp:View runat="server" ID="view1">
            
             <h3><asp:Localize ID="Localize1" runat="server" Text="<%$ Resources:stringsRes, pge_adm_CustomHtml%>" /></h3>

                <asp:Button CssClass="button" runat="server" ID="btnCreate" Text="<%$ Resources:stringsRes, pge_adm_Add%>" CommandName="addHtml" OnCommand="Action" />
                <asp:GridView runat="server" ID="gwCHtml" CssClass="admTable" AutoGenerateColumns="false" OnRowCommand="Action">
                   <Columns>
                   <asp:BoundField DataField="Title" HeaderText="<%$ Resources:stringsRes, pge_adm_Title%>" />
                   <asp:TemplateField HeaderText="<%$ Resources:stringsRes, pge_adm_Edit%>">
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="lnkEdit" CssClass="btnEdit" CommandArgument='<%#Bind("Guid")%>' CommandName="editHtml"></asp:LinkButton>
                    </ItemTemplate>
                  </asp:TemplateField>
                  
                  <asp:TemplateField HeaderText="<%$ Resources:stringsRes, pge_adm_Delete%>">
                    <ItemTemplate>
                        <asp:LinkButton runat="server" OnClientClick="return confirm('Do you want to delete this item?'); return false;" ID="lnkDel" CssClass="btnDelete" CommandArgument='<%#Bind("{0}","Guid")%>' CommandName="deleteHtml"></asp:LinkButton>
                    </ItemTemplate>
                  </asp:TemplateField>
                  </Columns>
                </asp:GridView>
        </asp:View>
        
        
        <asp:View runat="server" ID="view2">
            <h3><asp:Literal runat="server" ID="litEditText" Text="<%$ Resources:stringsRes, pge_adm_EditHtml%>" /></h3>
            <p><label><asp:Literal runat="server" ID="Literal1" Text="<%$ Resources:stringsRes, pge_adm_Title%>" /></label><asp:TextBox runat="server" ID="txtTitle"/></p>
            <p>
                <label><asp:Literal runat="server" ID="Literal2" Text="<%$ Resources:stringsRes, pge_adm_Html%>" /></label>
                <cc1:HtmlEditor runat="server" ID="txtHtml" Height="500" Width="100%" ImageGalleryPath="~/App_Data/UserImages/Images" ImageGalleryUrl="~/ftb.imagegallery.aspx" />
            </p>
            <asp:LinkButton runat="server" ID="btnCansel" CssClass="button" Text="<%$ Resources:stringsRes, glb__Cancel%>" CommandName="cansel" OnCommand="Action" />&nbsp;<asp:LinkButton runat="server" CssClass="button" ID="btnSave" OnCommand="Action" CommandName="saveHtml" Text="<%$ Resources:stringsRes, glb__Save%>" />
        </asp:View>
        
      
    
    </asp:MultiView>


</asp:Content>

